﻿using ServiceContrack;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Client
{
    public class CalculatorDuplexClient : ClientBase<ICalculatorDuplex>, ICalculatorDuplex
    {
        public CalculatorDuplexClient(System.ServiceModel.Channels.Binding binding, EndpointAddress edpAddr)
            : base(new InstanceContext(new CalculatorDuplexCallbackHandler()), binding, edpAddr) { }

        public void AddTo(double a)
        {
            
            base.Channel.AddTo(a);
        }


        public double Multy(double a, double b)
        {
            return base.Channel.Multy(a, b);
        }
    }
}
